package operation;

import book.Book;

import java.util.Scanner;

public class ModAuthor extends Mod{
    @Override
    public void modify(Book book) {
        System.out.print("请输入图书作者：");
        Scanner scan = new Scanner(System.in);
        String name = scan.nextLine();
        book.setAuthor(name);
        System.out.println("图书作者编辑成功！");
    }
}
